import request from '@/utils/request'

// 新增部门
export const addDepartment = (data) => request.post('/company/department', data)

// 查询部门
export const getDepartment = () => request.get('/company/department')

// 修改部门
export const upDepartment = (data) => request.put(`/company/department/${data.id}`, data)

// 删除部门
export const delDepartment = (id) => request.delete(`/company/department/${id}`)

// 根据ID查询部门
export const getDepartmentId = (id) => request.get(`/company/department/${id}`)
